package lab02.test16;

import java.util.Scanner;

public class Test16 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入要进行运算的数：");
        double a=sc.nextDouble();
        double b=sc.nextDouble();

        Add sum=new Add();
        Subtract sb=new Subtract();
        Multiplication mp=new Multiplication();
        Division ds=new Division();

        System.out.println("相加："+sum.fourOperations(a,b));
        System.out.println("相减："+sb.fourOperations(a,b));
        System.out.println("相乘：："+mp.fourOperations(a,b));
        System.out.println("相除：："+ds.fourOperations(a,b));


    }
}
